-- GENERATED SPELL FOR [Shattered Hand Executioner] --


function spell0_17301(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17301', 564, 1)
end

function spell1_17301(pUnit, Event) --@War Stomp,Self--
pUnit:FullCastSpellOnTarget(11876,pUnit)
pUnit:RegisterEvent('Sorts_17301', 5313, 1)
end

function Sorts_17301(pUnit, Event)
local choix_sorts_17301 = math.random(0, 1)
if choix_sorts_17301 == 0 then
pUnit:RegisterEvent('spell0_17301', 1, 1)
end
if choix_sorts_17301 == 1 then
pUnit:RegisterEvent('spell1_17301', 1, 1)
end
end

function mob17301_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17301', math.random(1500, 3000), 1)
end

function mob17301_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17301_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17301_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17301, 1, 'mob17301_Action')
RegisterUnitEvent(17301, 2, 'mob17301_Leave')
RegisterUnitEvent(17301, 3, 'mob17301_Kill')
RegisterUnitEvent(17301, 4, 'mob17301_Die')
